package Observer;

import Observer.InterfacesImpl.CurrentConditionDisplay;
import Observer.InterfacesImpl.WeatherData;

/**观察者模式——定义了对象一对多的依赖，这样一来，当一个对象改变时，其他依赖者都会收到通知并更新
 * @Author: pengzx
 * @Description:
 * @Date: 14:12 2017/9/5
 * @Modified by: 1.0
 */
public class Demo {
    public static void main(String[] args){
        WeatherData weatherData = new WeatherData();
        CurrentConditionDisplay currentConditionDisplay = new CurrentConditionDisplay(weatherData);
        weatherData.setMeasurements(80,90,30.4f);
    }
}
